/**
  ******************************************************************************
  * @file    can_interfacing/can_IO.h
  * @author  MCD Application Team
  * @version V1.0.0
  * @date    19-September-2011
  * @brief   
  ******************************************************************************
  * @attention
  *
  * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
  * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE
  * TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY
  * DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING
  * FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE
  * CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
  *
  * <h2><center>&copy; COPYRIGHT 2011 STMicroelectronics</center></h2>
  ******************************************************************************  
  */ 

#ifndef __CAN_CONF
#define __CAN_CONF

#include "stm32f4_discovery.h"
#include "stm32f4_discovery_lis302dl.h"

	void can1_init(u8 mode);
	void can2_init(void);
	void can1_RCC(void);
	void can2_RCC(void);
	void can1_GPIO(void);
	void can2_GPIO(void);
	void can1_NVIC(void);
	void can2_NVIC(void);
	u8 test_message_transmit(void);
	void message_init(void);
	void make_message(uint32_t StdId, uint8_t *DATA);
	uint8_t send_message(void);



#endif
